<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" +
			request.getServerPort() + path + "/";
%>
<base href="<%=basePath%>">
<html lang="zxx">

<head>
	<title>登录</title>

	<!-- Meta tags -->
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">

	<!-- Style -->
	<link rel="stylesheet" href="<%=basePath%>view/css/style.css" type="text/css" media="all" />
	<script src="<%=basePath%>view/js/loginJs.js"></script>
	<script src="<%=basePath%>view/js/jquery-1.8.3.min.js"></script>
</head>

<body>
<!-- login form -->
<section class="w3l-login">
	<div class="overlay">
		<div class="wrapper">
			<div class="logo">
				<a class="brand-logo" href="login.jsp">登录界面</a>
			</div>
			<div class="form-section">
				<h3>登录</h3>
				<h6>与我们取得联系</h6>
				<h6 style="color: red">${msg}</h6>
				<form method="post" class="signin-form">
					<div class="form-input">
						<input type="text" id="username" name="username" placeholder="用户名/手机号" required="" autofocus>
					</div>
					<div class="form-input">
						<input type="password" id="password" name="password" placeholder="密码" required="">
					</div>
					<button type="button" onclick="login()" class="btn btn-primary theme-button mt-4">登 录</button>
					<div class="new-signup">
						<!--<a href="#reload" class="signuplink">Forgot username or password?</a>-->
					</div>
				</form>
				<p class="signup">没有账户吗? <a href="<%=basePath%>view/pages/register.jsp" class="signuplink">注册</a></p>
			</div>
		</div>
	</div>
	<div id='stars'></div>
	<div id='stars2'></div>
	<div id='stars3'></div>

	<!-- copyright -->
	<div class="copy-right">
		<!--<p>&copy; 2020 Snow Login Form. All rights reserved | Design by <a href="" target="_blank">group3</a></p>-->
	</div>
	<!-- //copyright -->
</section>

<!-- /login form -->
</body>

</html>